package sdu.icat.sys.smodel;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import sdu.icat.pj.base.BaseModel;


/**
 * 系统用户
 * @author ljh_2015
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name="sys_user")
public class SysUser extends BaseModel {

    @Id
    @GeneratedValue
    protected Long id;
    
    /**
     * 登录账户
     */
    private String account;
    
    /**
     * 登录密码
     */
    private String password;
    
    /**
     * 用户类型
     * <li>1 普通用户</li>
     * <li>2 管理员</li>
     * <li>3 系统用户</li>
     */
    private String userType;
    
    /**
     * 姓名
     */
    private String userName;
    
    /**
     * 姓名拼音
     */
    private String namePinyin;
    
    /**
     * 性别
     * 1、男
     * 2、女
     */
    private Integer sex;
    
    /**
     * 头像
     */
    private String avatar;
    
    /**
     * 电话
     */
    private String phone;
    
    /**
     * 邮箱
     */
    private String email;
    
    /**
     * 身份证号码
     */
    @Column(name="id_card")
    private String idCard;
    
    /**
     * 微信
     */
    private String wei_xin;
    
    /**
     * QQ
     */
    private String qq;
    
    /**
     * 出生日期
     */
    @Temporal(TemporalType.DATE)
    private Date birthDay;
    
    /**
     * 学号
     */
    private String stuNo;
    
    /**
     * 学院
     */
    private String school;
    
    /**
     * 专业
     */
    private String depth;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNamePinyin() {
        return namePinyin;
    }

    public void setNamePinyin(String namePinyin) {
        this.namePinyin = namePinyin;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getWei_xin() {
        return wei_xin;
    }

    public void setWei_xin(String wei_xin) {
        this.wei_xin = wei_xin;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public Date getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(Date birthDay) {
        this.birthDay = birthDay;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getDepth() {
        return depth;
    }

    public void setDepth(String depth) {
        this.depth = depth;
    }

}
